

import request from '@/utils/request'



//人员库列表
export function getCameraList(query) {
    return request({
        url: 'snap/camera/list',
        method: 'get',
        params: query
    })
}

//新增人员库
export function addCamera(data) {
    return request({
        url: 'snap/camera/add',
        method: 'post',
        data
    })
}

//编辑人员库
export function editCamera(data) {
    return request({
        url: 'snap/camera/edit',
        method: 'post',
        data
    })
}

//删除人员库
export function delCamera(data) {
    return request({
        url: 'snap/camera/del',
        method: 'post',
        data
    })
}
// 摄像头和预警类型绑定
export function bindWarnType(data) {
    return request({
        url: 'gui/warning/bind',
        method: 'post',
        data
    })
}

//未绑定摄像头区域
export function getNotRegion(query) {
    return request({
        url: 'user/zone/selectListStatus',
        method: 'get',
        params: query
    })
}
